package cc.yaomm.service.basic.service.user.bo;

import cc.yaomm.common.basic.lang.bo.BaseParamBO;
import cc.yaomm.common.biz.enums.LoginTypeEnum;
import cc.yaomm.common.biz.enums.SystemEnum;
import lombok.Data;


import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class LoginParamBO extends BaseParamBO {

    @NotNull(message = "登录方式不能为空")
    private LoginTypeEnum loginType;

    @NotBlank(message = "帐号不能为空")
    private String account;

    @NotBlank(message = "密码不能为空")
    private String password;

    @NotNull(message = "登录系统不能为空")
    private SystemEnum system;

    private String ip;
}
